<div class="modal-header">
  <div class="modal-title">编辑 {{ data.userName }} 信息</div>
</div>
<nz-spin *ngIf="!data" class="modal-spin"></nz-spin>
<sf 
  #sf
  liveValidate="true"
  firstVisual="true"
  *ngIf="data"
  mode="edit"
  [ui]="ui"
  [schema]="schema"
  [formData]="data"
  button="none"
>
  <div class="modal-footer">
    <button nz-button type="button" (click)="close()">关闭</button>
    <button nz-button type="submit" nzType="primary" (click)="save(sf.value, sf.valid)" [nzLoading]="http.loading">{{'BTN.SAVE' | i18n}}</button>
  </div>
</sf>
